﻿<%@ Page Language="C#" MasterPageFile="~/Shared/EOS.master" AutoEventWireup="True"
    Inherits="EOSCRM.Web.Forms.HeThong.ChangePasswordPerson" CodeBehind="ChangePasswordPerson.aspx.cs" %>
<%@ Register TagPrefix="eoscrm" Namespace="EOSCRM.Controls" Assembly="EOSCRM.Controls" %>

<asp:Content ID="head" ContentPlaceHolderID="headCPH" runat="server" />
<asp:Content ID="content" ContentPlaceHolderID="mainCPH" runat="server">
    <asp:UpdatePanel ID="upnlCustomers" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <div class="crmcontainer">
                <table class="crmtable">
                    <tbody>
                        <tr>
                            <td class="crmcell right">Tên đăng nhập</td>
                            <td class="crmcell">
                                <div class="left">
                                    <asp:Label ID="lblUSERNAME" runat="server" Text="Label"></asp:Label>
                                </div>
                                <div class="left">
                                    <div class="right">
                                        Tên người dùng
                                    </div>
                                </div>
                                <div class="left">
                                    <asp:TextBox runat="server" ID="txttenNhanvien" />
                                </div>
                                <asp:HiddenField runat="server" ID="hdId" />
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right">Mật khẩu</td>
                            <td class="crmcell">
                                <div class="left">
                                    <asp:TextBox ID="txtPASSWORD" runat="server" Width="100px" TabIndex="2" 
                                        TextMode="Password" MaxLength="32" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right"></td>
                            <td class="crmcell">

                            <div class="left">
                                    <eoscrm:Button ID="btnFilter" runat="server" CssClass="filter" OnClick="btnFilter_Click" TabIndex="5" />
                                </div>
                                <div class="left">
                                    <eoscrm:Button ID="btnSave" runat="server" CssClass="save" OnClick="btnSave_Click" TabIndex="5" />
                                </div>
                                <div class="left">
                                    <eoscrm:Button ID="btnCancel" runat="server" CssClass="cancel" OnClick="btnCancel_Click" TabIndex="6" />
                                </div>
                            </td>
                        </tr> 
                    </tbody>
                </table>
            </div>
        </ContentTemplate>
	</asp:UpdatePanel>
    <asp:UpdatePanel ID="upnlGrid" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <div class="crmcontainer">
                <eoscrm:Grid 
                    ID="gvNguoiDung" runat="server" UseCustomPager="true" PageSize="100" OnRowCommand="gvNguoiDung_RowCommand">
                    <PagerSettings FirstPageText="người dùng" PageButtonCount="2" />
                    <Columns>
                        <asp:TemplateField HeaderText="Tên người dùng">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkBtnID" runat="server" 
                                    CommandArgument='<%# Eval("Id") %>' CommandName="EditUser"
                                    Text='<%# HttpUtility.HtmlEncode(Eval("NHANVIEN.HOTEN").ToString()) %>'></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle Font-Bold="True" />
                        </asp:TemplateField>                
                        <asp:BoundField HeaderText="Tạo bởi" DataField="CreateBy" />
                        <asp:BoundField HeaderText="Cập nhật" DataField="UpdateBy" />
                    </Columns>
                </eoscrm:Grid>
            </div>
        </ContentTemplate>
	</asp:UpdatePanel>
</asp:Content>
